package com.ruoyi.order.feign.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 地址信息对象 address
 *
 * @author 林道敬
 * @date 2025-01-04
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否默认收货地址：0-&gt;否；1-&gt;是 */
    @Excel(name = "是否默认收货地址：0-&gt;否；1-&gt;是")
    private Long defaultStatus;

    /** 收发货人姓名 */
    @Excel(name = "收发货人姓名")
    private String receiveName;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String phone;

    /** 省/直辖市 */
    @Excel(name = "省/直辖市")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String region;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailAddress;

    /** 距离 */
    @Excel(name = "距离")
    private BigDecimal distance;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDefaultStatus(Long defaultStatus)
    {
        this.defaultStatus = defaultStatus;
    }

    public Long getDefaultStatus()
    {
        return defaultStatus;
    }
    public void setReceiveName(String receiveName)
    {
        this.receiveName = receiveName;
    }

    public String getReceiveName()
    {
        return receiveName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setRegion(String region)
    {
        this.region = region;
    }

    public String getRegion()
    {
        return region;
    }
    public void setDetailAddress(String detailAddress)
    {
        this.detailAddress = detailAddress;
    }

    public String getDetailAddress()
    {
        return detailAddress;
    }


    public BigDecimal getDistance() {
        return distance;
    }

    public void setDistance(BigDecimal distance) {
        this.distance = distance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("defaultStatus", getDefaultStatus())
            .append("receiveName", getReceiveName())
            .append("phone", getPhone())
            .append("province", getProvince())
            .append("city", getCity())
            .append("region", getRegion())
            .append("detailAddress", getDetailAddress())
            .append("createTime", getCreateTime())
            .append("distance", getDistance())
            .toString();
    }
}
